﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Conference.Core.Sal.DataRequests;
using Conference.Core.Sal.DataResponses;
using Conference.Server.Synchronization;
using TeaLightV5.Foundation.Sal.DataRequests;
using TeaLightV5.Foundation.Sal.DataResponses;

namespace Conference.Server
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "ISynchronizeService2" in code, svc and config file together.
    // NOTE: In order to launch WCF Test Client for testing this service, please select ISynchronizeService2.svc or ISynchronizeService2.svc.cs at the Solution Explorer and start debugging.
    public class SynchronizeService2 : ISynchronizeService2
    {
        #region Speaker

        public SpeakerDataResponse GetSpeakersByModifiedDate(GetByModifiedDateRequest request)
        {
            SyncSpeaker sync = new SyncSpeaker();
            return sync.GetByModifiedDate(request.FromDate);
        }

        //public DeletedRowDataResponse<Guid> GetDeletedSpeakersByModifiedDate(GetByModifiedDateRequest request)
        //{
        //    SyncSpeaker sync = new SyncSpeaker();
        //    return sync.GetDeletedRowsByModifiedDate(request.FromDate);
        //}

        //public void UpdateSpeakers(SpeakerDataRequest data)
        //{
        //    SyncSpeaker sync = new SyncSpeaker();
        //    sync.Update(data);
        //}

        //public void DeleteSpeakers(DeletedRowDataRequest<Guid> deleted)
        //{
        //    SyncSpeaker sync = new SyncSpeaker();
        //    sync.Delete(deleted);
        //}

        #endregion

    }
}
